home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 016a / love4th.zip / VOCABS.DOC < prev    next >
Text File  |  1991-10-01  |  2KB  |  53 lines

  1.                Vocabularies in L.O.V.E. Forth
  2.                ==============================
  3.  
  4.  
  5.         L.O.V.E. Forth implements the Forth-83 standard vocabularies 
  6. with some of the words in the experimental proposal by William F. 
  7. Ragsdale.  The specification for vocabularies in the Forth-83 standard 
  8. leaves much to be desired by expert and novice programmers alike. 
  9. Ragsdale's proposal solves many of the problems with a simple and 
  10. powerfull concept.  His ideas have been so widely implemented that they 
  11. can be considered an integral and crucial part of the Forth-83 
  12. standard.
  13.  
  14.         L.O.V.E. Forth implements the concept of a 'search order' by 
  15. means of a special stack, the vocabulary stack, which contains the 
  16. parameter field addresses of vocabularies that are to be searched when
  17. interpreting or compiling.  The search order may be inspected at any 
  18. time by typing the word ORDER.
  19.  
  20.  
  21.        Example:
  22.                ORDER  <cr>
  23.  
  24.        Displays:
  25.  
  26.                Search Order: -> TOOLBOX FORTH ROOT
  27.                Definitions:  FORTH
  28.  
  29.         The  vocabularies are currently being searched by first
  30. searching TOOLBOX, then FORTH and finally ROOT.
  31. All new DEFINITIONS that are compiled are currently being put into the
  32. FORTH vocabulary.
  33.  
  34.         The ROOT vocabulary is always the last vocabulary in the
  35. search order and contains the Forth words to alter the search order, to
  36. create new vocabularies, to list the words in a vocabulary and to
  37. FORGET words from the dictionary.
  38.  
  39. Specifying a Search Order
  40. -------------------------
  41.         The search order can changed at any time by executing a
  42. combination of the words ONLY and ALSO with vocabulary names.
  43.  
  44. Example:
  45.        To compile a word into the MSDOS vocabulary while also making use of
  46.        some MSDOS file functions...
  47.  
  48.                ONLY FORTH ALSO MSDOS DEFINITIONS
  49.  
  50.        makes the search order:
  51.  
  52.                Search Order: -> MSDOS FORTH ROOT
  53.                Definitions:  MSDOS